package case_library_backup

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Case_struct_backupRouter struct {
}

// InitCase_struct_backupRouter 初始化 Case_struct_backup 路由信息
func (s *Case_struct_backupRouter) InitCase_struct_backupRouter(Router *gin.RouterGroup) {
	case_backupRouter := Router.Group("case_backup").Use(middleware.OperationRecord())
	case_backupRouterWithoutRecord := Router.Group("case_backup")
	var case_backupApi = v1.ApiGroupApp.Case_library_backupApiGroup.Case_struct_backupApi
	{
		case_backupRouter.POST("createCase_struct_backup", case_backupApi.CreateCase_struct_backup)   // 新建Case_struct_backup
		case_backupRouter.DELETE("deleteCase_struct_backup", case_backupApi.DeleteCase_struct_backup) // 删除Case_struct_backup
		case_backupRouter.DELETE("deleteCase_struct_backupByIds", case_backupApi.DeleteCase_struct_backupByIds) // 批量删除Case_struct_backup
		case_backupRouter.PUT("updateCase_struct_backup", case_backupApi.UpdateCase_struct_backup)    // 更新Case_struct_backup
	}
	{
		case_backupRouterWithoutRecord.GET("findCase_struct_backup", case_backupApi.FindCase_struct_backup)        // 根据ID获取Case_struct_backup
		case_backupRouterWithoutRecord.GET("getCase_struct_backupList", case_backupApi.GetCase_struct_backupList)  // 获取Case_struct_backup列表
	}
}
